﻿package frEngine.shader.filters.fragmentFilters
{
    import __AS3__.vec.*;
    import frEngine.shader.*;
    import frEngine.shader.filters.*;

    public class FragmentFilter extends FilterBase
    {
        public var killValue:Vector.<Number>;
        public var colorOffsetValue:Vector.<Number>;
        public var colorMultiplier:Vector.<Number>;
        public var uvValue:Vector.<Number>;
        public var UVrotate:Vector.<Number>;
        public var uvSclaeCenter2:Vector.<Number>;
        private static const defaultZeroValue:Vector.<Number> = FragmentFilter.Vector.<Number>([0, 0, 0, 0]);
        private static const defaultColorOffset:Vector.<Number> = FragmentFilter.Vector.<Number>([1, 1, 1, 1]);
        private static const defaultcolorMultiplier:Vector.<Number> = FragmentFilter.Vector.<Number>([1, 1, 1, 1]);
        private static const defaultcolorUvScale:Vector.<Number> = FragmentFilter.Vector.<Number>([1, 1, 0, 0]);
        private static const defaultRotate:Vector.<Number> = FragmentFilter.Vector.<Number>([0.5, 0.5, 0, 0]);

        public function FragmentFilter(param1:Array = null)
        {
            this.killValue = defaultZeroValue;
            this.colorOffsetValue = defaultColorOffset;
            this.colorMultiplier = defaultcolorMultiplier;
            this.uvValue = defaultcolorUvScale;
            this.UVrotate = defaultRotate;
            this.uvSclaeCenter2 = defaultcolorUvScale;
            super(FilterType.Fragment, FilterPriority.fragment, param1);
            return;
        }// end function

        public function preCreateFragmentUvCoord(param1:Program3dRegisterInstance) : String
        {
            return "";
        }// end function

    }
}
